package com.xzit.data;

import com.xzit.domain.Car;

import java.util.ArrayList;
import java.util.List;

/**
 * @author haoranlu
 * @project IntelliJ IDEA
 */
public class DataBase {
    private static String names;
    private static List<Car> carlist = new ArrayList<Car>();

    static {
        names="卫青,霍去病,戚继光,岳飞,项羽";
        carlist.add(new Car("雷克萨斯",67,"银灰"));
        carlist.add(new Car("布加迪威龙",205,"蓝色"));
        carlist.add(new Car("法拉利",150,"红色"));
        carlist.add(new Car("路虎揽胜",150,"白色"));
        carlist.add(new Car("兰博基尼",200,"黄色"));
        carlist.add(new Car("劳斯莱斯幻影",800,"黑色"));
    }

    public static String getNames() {
        return names;
    }

    public static void setNames(String names) {
        DataBase.names = names;
    }

    public static List<Car> getCarlist() {
        return carlist;
    }

    public static void setCarlist(List<Car> carlist) {
        DataBase.carlist = carlist;
    }
}
